import request from '@/http/index';

export function DataRequest(userInfo) {
  return request({
    url: '/api/admin/oauth2/token',
    method: 'POST',
    headers: {
      Authorization: '',
      'Content-Type': 'application/x-www-form-urlencoded',
      Accept: '*/*',
    },
    data: {
      username: userInfo.username,
    },
  });
}
export function paramPost(userInfo) {
  return request({
    url: '/api/admin/oauth2/token',
    method: 'POST',
    headers: {
      Authorization: '',
      'Content-Type': 'application/x-www-form-urlencoded',
      Accept: '*/*',
    },
    params: {
      username: userInfo.username
    },
  });
}

